function udp_callback(s,event)
global N Ci Cj1 Cj2 Cj3 Cj4 win obj a count tt tstart
[a,count]=fread(s,10,'uint16');
disp(a);
t1 = datetime('now','Format','HH:mm:ss.SSS');
[h,m,s] = hms(t1);
mytime=h*3600+m*60+s;
if N==0
    tstart=mytime;
end
N=N+1;
Ci(N)=N;
Cj1(N)=a(1);Cj2(N)=a(2);Cj3(N)=a(3);Cj4(N)=a(4);
tt(N)=mytime-tstart;
if N<win
    x_qujian=win;
else
    x_qujian=N;
end
x_qujian1=x_qujian-win;
plot(Ci,Cj2,'g--',Ci,Cj3,'r');
%
plot(Ci,Cj3,'r');
axis([x_qujian1,x_qujian,59000,61535]);
pause(0.001);

end